//
//  HelpViewController.m
//  MyProject
//
//  Created by jiaming yan on 2018/4/24.
//  Copyright © 2018年 yanjiaming. All rights reserved.
//

#import "HelpViewController.h"
#import "WebViewController.h"
#import "FeedBackVC.h"

@interface HelpViewController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topViewHeight;

@end

@implementation HelpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationController.navigationBarHidden = YES;
    if (IOS11Later) {
        self.topViewHeight.constant = 0;
    }else{
        self.topViewHeight.constant = 20;
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)buttonClick:(UIButton *)sender {
     NSArray *titleArr = @[@"问答使用指南",@"解密专题指南",@"入职保过使用指南",@"问答使用指南",@"解密专题指南",@"入职保过使用指南",@"偷听偷看使用指南",@"支付与退款服务指南",@"收益提现服务指南"];
    NSArray *nameArr = @[@"求职者问答帮助.docx",@"解密帮助文档_求职者.docx",@"保过帮助文档_求职者.docx",@"认证同事问答帮助.docx",@"解密帮助文档_在职者.docx",@"保过帮助文档_在职者.docx",@"偷听偷看使用指南.docx",@"支付与退款.docx",@"收益和提现服务指南.docx"];
    WebViewController *vc = [[WebViewController alloc]init];
    vc.titleStr =titleArr[sender.tag-1];
    vc.url = [NSString stringWithFormat:@"%@%@",ImageBaseURL,nameArr[sender.tag-1]];
    vc.isWord = YES;
    [self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)feedBackClick:(id)sender {
    
    FeedBackVC *vc = [[FeedBackVC alloc]init];

    [self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)backClick:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
